%ifndef BOOT_PROTECTEDMODEUTILITY_VIDEOTEXTMODECLEAR
%define BOOT_PROTECTEDMODEUTILITY_VIDEOTEXTMODECLEAR
%include "Boot/Segment.S"
bits 32
; 清空显存（Text Mode）
; void VideoTextModeClear(void)
VideoTextModeClear:
    push esi
    mov esi, 0
VideoTextModeClear.Loop:
    mov word [gs:esi], 0b0000_1111_0010_0000 ; 黑色空格字符，注意每次只能写入一个字，不能一次性写入 DWORD
    add esi, 2
    cmp esi, 32768
    jb VideoTextModeClear.Loop
VideoTextModeClear.Done
    pop esi
    ret
%endif